﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TinNhaDatChiTiet.aspx.cs" Inherits="WebHousingInfo.TinNhaDatChiTiet" %>
<%@ Register Src="~/Controls/Header.ascx" TagName="Head" TagPrefix="Header" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MeNuDuoi" TagPrefix="MenuFooter" %>
<%@ Register Src="~/Controls/Footer.ascx" TagName="Foot" TagPrefix="Footer" %>
<%@ Register Src="~/Controls/Quangcaotraitrangcon.ascx" TagName="QC" TagPrefix="Quangcaotraitrangcon" %>
<%@ Register Src="~/Controls/TimKiemTrangCon.ascx" TagName="TK" TagPrefix="TimKiemTrangCon" %>
<%@ Register Src="~/Controls/NhaDatBanThueMoiTrangCon.ascx" TagName="NDM" TagPrefix="NhaDatBanThueMoiTrangCon" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Tin nha dat chi tiet</title>
</head>
<body>
    <form id="form1" runat="server">
        <div id="uni_wrapper">
            <Header:Head ID="Header" runat="server" />
	        <div id="uni_main">
		        <div id="content" class="clearfix">
		        <% string mode=Request.QueryString["id"];
                var objecttinnd = HousingInfo.Library.NewsHouseBO.GetNewsHouseBO(Convert.ToInt32(mode));
		         %>
			        <div id="group_240_l">
			        <!--b box search-->
                        <TimKiemTrangCon:TK ID="TimKiemTrangCon" runat="server" />					     	
				        <NhaDatBanThueMoiTrangCon:NDM ID="NhaDatBanThueMoiTrangCon" runat="server" />
                        <Quangcaotraitrangcon:QC ID="Quangcaotraitrangcon" runat="server" />
			        </div>
			        <div id="group_710_r">
				        <div id="thongtin">
				            <div style="padding:5px;">
				                <a href="Home.aspx">Trang chủ nhà đất</a>&nbsp;>&nbsp;<a href="#"><%=objecttinnd.CategoryName %></a>&nbsp;>&nbsp;<a href="#"><%=objecttinnd.HousingTypeName %></a>
				            </div>
					        <div class="title">
						        <div class="subtitle">
							        <p><%=objecttinnd.Title %></p>
						        </div>
						        <div class="thongbao">					
							        <span><a href="#">Ghi gi cho nay</a></span> 
						        </div>
					        </div>
					        <div id="content_data">
						        <div id="group01">
							        <div id="left"> 
								        <span class="pic_left"><img src="Images/nhaban10._1204772472.jpg" width="250" height="180" /></span>
							        </div>
							        <div id="right">
								        <ul>
									        <li class="bg01"><a href="#" >Hình xem thêm</a></li>
									        <li class="bg02"><a href="#">Bản In</a> </li>
									        <li class="bg03"><a href="#">Gửi bạn bè</a></li>
								        </ul>
							        </div>			
						        </div>
						        <div id="group02" >
							        <div class="div_table_bg">
								        <div class="div_table_top">
									        <table border="0" cellpadding="0" cellspacing="0" class="table_1">
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Ngày Đăng</td>
											        <td class="p3">:</td>
											        <td class="p2">20/03/2011 </td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Nơi Đăng</td>
											        <td class="p3">:</td>
											        <td class="p2"> Hà Nội &nbsp;</td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Giá bán </td>
											        <td class="p3">:</td>
											        <td class="p2"><span>150 Triệu VNĐ/m2</span> &nbsp;</td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Diện tích</td>
											        <td class="p3">:</td>
											        <td class="p2">3.40m x 17.00m</td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Hướng</td>
											        <td class="p3">:</td>
											        <td class="p2">Đông Nam&nbsp;</td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Địa chỉ</td>
											        <td class="p3">:</td>
											        <td class="p2">bán nhà mặt ngõ thái thịnh 1 &nbsp;</td>
										        </tr>
									        </table>
								        </div>
							        </div>
							        <div class="mainDiv">
								        <span class="topItem"><p><a href="">Liên lạc người đăng tin</a></p></span>
							        </div>
						        </div>
					        </div>
					        <div id="thongtinmota">
					            <div id="group02recent" >
							        <div class="div_table_bg">
								        <div class="div_table_top">
									        <table border="0" cellpadding="0" cellspacing="0" class="table_1">
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Ngày Đăng</td>
											        <td class="p3">:</td>
											        <td class="p2"><%= Convert.ToDateTime(objecttinnd.CreatedDate).ToString("dd/MM/yyyy")%> </td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Khu vực</td>
											        <td class="p3">:</td>
											        <td class="p2"><%=objecttinnd.AreaName%> &nbsp;</td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Đường</td>
											        <td class="p3">:</td>
											        <td class="p2"><%=objecttinnd.AreaDetailName%> &nbsp;</td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Giá bán </td>
											        <td class="p3">:</td>
											        <td class="p2"><span><%=objecttinnd.Price %>&nbsp;<%=objecttinnd.CurrencyName%>/m2</span> &nbsp;<%if (objecttinnd.IsNegotiation == true)
                                                                                                                     { %>Cho phép thương lượng<%}
                                                                                                                     else
                                                                                                                     { %>Không thương lượng<%} %></td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Diện tích</td>
											        <td class="p3">:</td>
											        <td class="p2"><%=objecttinnd.SurfaceAreaWidth%>m&nbsp; x&nbsp; <%=objecttinnd.SurfaceAreaHeight %>m</td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Hướng</td>
											        <td class="p3">:</td>
											        <td class="p2"><%=objecttinnd.Direction %></td>
										        </tr>
										        <tr>
											        <td class="p1"><img src="Images/icon_detail_1.gif" border="0" /> &nbsp;Địa chỉ</td>
											        <td class="p3">:</td>
											        <td class="p2"><%=objecttinnd.HousesAddress %></td>
										        </tr>
									        </table>
								        </div>
							        </div>
							        <div class="mainDiv">
							        </div>
						        </div>
						        <div class="sub_title">
							        <p>Thông Tin Mô Tả</p>
						        </div>
						        <div class="text"><%=objecttinnd.NewsContent %></div>
						         <div class="sub_title">
							        <p>Tiện ích</p>
						        </div>
						        <% var listaddon = objecttinnd.Addons.Split(','); %>
						        <%if (listaddon[0] != "")
                                { %>
						        <div class="text">
						            <div style="float:left; width:200px;">Năm xây dựng:
						            </div>
						            <div><%=listaddon[0]%>
						            </div>
						        </div>
						        <%} %>
						        <%if (listaddon[1] != "")
                                { %>
						        <div class="text">
						            <div style="float:left; width:200px;">Số nhà tắm/Vệ sinh:
						            </div>
						            <div><%=listaddon[1]%>
						            </div>
						        </div>
						        <%} %> 
						        <%if (listaddon[2] != "")
                                { %>
						        <div class="text">
						            <div style="float:left; width:200px;">Số phòng ngủ:
						            </div>
						            <div><%=listaddon[2]%>
						            </div>
						        </div>
						        <%} %> 	
						        <%if (listaddon[5] != "")
                                { %>
						        <div class="text">
						            <div style="float:left; width:200px;">Đường trước nhà:
						            </div>
						            <div><%=listaddon[5]%>m
						            </div>
						        </div>
						        <%} %>
						        <div class="text">
                                   <table border="0" cellpadding="0" cellspacing="3">
							        <tr>
								        <td class="col_width">&nbsp;<%if (listaddon[3] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp Nước máy
                                        </td>
								        <td class="col_width">&nbsp;<%if (listaddon[4] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Đồng hồ điện riêng
                                        </td>
							        </tr>				
						        </table>
                                    
						        </div>						  
					          <!--DANH SACH NOI THAT TIEN NGHI-->
						        <div class="sub_title"> Nội Thất - Tiện Nghi</div>
						        <% var listInter = objecttinnd.InteriorAmenities.Split(','); %>
						        <table border="0" cellpadding="0" cellspacing="3">
							        <tr>
								        <td class="col_width">&nbsp;<%if (listInter[0] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Thang máy</td>
								        <td class="col_width">&nbsp;<%if (listInter[1] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Bảo vệ 24/24</td>
								        <td class="col_width">&nbsp;<%if (listInter[2] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Chỗ đậu ôtô</td>
							        </tr>	
							         <tr>
								        <td class="col_width">&nbsp;<%if (listInter[3] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Sân vườn</td>
								        <td class="col_width">&nbsp;<%if (listInter[4] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Điều hòa</td>
								        <td class="col_width">&nbsp;<%if (listInter[5] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Sân thượng</td>
							        </tr>
							        <tr>
								        <td class="col_width">&nbsp;<%if (listInter[6] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Điện thọai</td>
								        <td class="col_width">&nbsp;<%if (listInter[7] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Hồ bơi</td>
								        <td class="col_width">&nbsp;<%if (listInter[8] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Nhà bếp</td>
							        </tr>
							        <tr>
								        <td class="col_width">&nbsp;<%if (listInter[9] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gara Ôtô</td>
								        <td class="col_width">&nbsp;<%if (listInter[10] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Phòng khách</td>
							        </tr>
							        				
						        </table>	
						        <!--DANH SACH VAN HOA XA HOI-->
						        <div class="sub_title"> Văn hóa - Xã hội</div>
						        <%var list_SocialCulture = objecttinnd.SocialCulture.Split(','); %>
						        <table border="0" cellpadding="0" cellspacing="3">
							        <tr>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[0] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần công viên</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[1] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần trung tâm giải trí</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[2] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần trường mẫu giáo</td>
							        </tr>	
							         <tr>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[3] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần trung tâm thương mại</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[4] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần trường Đại Học Cao Đẳng</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[5] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần bệnh viện</td>
							        </tr>
							        <tr>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[6] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần trường cấp III</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[7] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần chợ</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[8] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần trường cấp II</td>
							        </tr>
							        <tr>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[9] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Tiện kinh doanh</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[10] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Gần trường cấp I</td>
								        <td class="col_width">&nbsp;<%if (list_SocialCulture[11] == "True")
                                              { %><img src="Images/checkbox_checked.gif" border="0" /><%}
                                              else
                                              {%><img src="Images/checkbox.gif" border="0" /><%} %>&nbsp;&nbsp;Khu dân trí cao</td>
							        </tr>							        							        				
						        </table>			  
					          <!--DANH SACH TRANG THAI PHAP LY-->
						        <div class="sub_title"> Tình Trạng Pháp Lý</div>
						        <table border="0" cellpadding="0" cellspacing="3">
							        <tr>
								        <td class="col_width"><%if (objecttinnd.Documents == "Sổ Đỏ")
                                        { %><input type="radio" checked disabled="disabled"/><%}
                                        else
                                        { %><input type="radio" disabled="disabled"/><%} %>Sổ đỏ</td>
								        <td class="col_width"><%if (objecttinnd.Documents == "Sổ Hồng")
                                        { %><input type="radio" checked disabled="disabled"/><%}
                                        else
                                        { %><input type="radio" disabled="disabled"/><%} %>Sổ hồng</td>
								        <td class="col_width"><%if (objecttinnd.Documents == "Giấy Tay")
                                        { %><input type="radio" checked disabled="disabled"/><%}
                                        else
                                        { %><input type="radio" disabled="disabled"/><%} %>Giấy tay</td>
							        </tr>          
						        </table>
						        <table border="0" cellpadding="0" cellspacing="3">
							        <tr>
								        <td height="35">
									        <div class="other_news"><a href="#">Các tin đăng khác</a></div>- Dùng để xem đã được đăng bởi cùng một thành viên này
								        </td>
							        </tr>
						        </table>
						        <div class="sub_title"> Thông tin liên hệ</div>
						        <table border="0" cellpadding="0" cellspacing="3" class="bg01">
							        <tr>
							          <td class="col_width_thongtin">Công ty/Cá nhân</td>
							          <td class="col_width_chitiet">: <%=objecttinnd.ContactName %></td>
							          <td class="col_width_thongtin">Điện thoại</td>
							          <td class="col_width_chitiet">: <%=objecttinnd.ContactPhone %> </td>
							        </tr>
							        <tr>
							          <td class="col_width_thongtin">Địa chỉ</td>
							          <td class="col_width_chitiet">: <%=objecttinnd.ContactAddress %> </td>
							          <td class="col_width_thongtin">Email</td>
							          <td class="col_width_chitiet">: <%=objecttinnd.ContactEmail %> </td>
							        </tr>		
						        </table>
					        </div>
				        <!--e subtitle-->
				        </div>
				        <div class="banner_ad_468_center">
						        Dat quang cao o day
				        </div>
				        <div id="chitietmuaban">
					        <div class="title_chitietmuaban">
						        <p>CÁC TIN KHÁC</p>
						        <span class="icon_6x7"><img src="Images/icon_6x7.gif" height="7" width="6" align="absbottom" />
							        <a href="#">xem thêm</a>
						        </span> 
					        </div>
					        <div class="bg_7">
						        <ul>
							        <li style="width:100px;">Hình ảnh</li>
							        <li style="width:108px;">Thông Tin</li>
							        <li class="right" style="width:100px;">Ngày Đăng</li>
							        <li class="right" style="width:87px;">Nơi Đăng</li>
						        </ul>
				           </div>
				        </div>
        			  
				        <div id="data_group_width_708">
					        <div class="sub_data_group_width_708">
						        <div class="img_width_100">
							        <a href="#"><img src="Images/1298554599.jpg" width="100" height="100" style="background:url(Images/pic_tingammau.jpg) no-repeat center center; width:100px; height:100px" /></a>
						        </div>
						        <div class="right_width_607">
							        <div class="title_group_width_607">
								        <span class="sub_title_left"><a href="#">Miền Đông 2km: 1,2tỷ sổ hồng </a></span>
								        <span class="sub_title_right"><a href="#">chi tiết</a></span>				
							        </div>
							        <div class="content_group_width_607">
								        <table width="607" border="0" cellspacing="0" cellpadding="0">
									        <tr>
										        <td valign="top" class="li_width_126" width="120">
											        <div class="li_width_126_01">
											        Giá: <span>1.2 Tỷ VNĐ</span><br>DT: 56 m<sup>2</sup><br />Vị trí: trong hẻm<br>						
											        </div>						
										        </td>
										        <td valign="top" class="li_width_336" width="300">
											        <div class="li_width_336_01">
												        <p>4x14m, 1lầu, 3  đông đúc, sống ổn định. Gần  đường...</p>
												        <label>Lượt xem: <strong>223</strong>  |  
													        <span id="luu_150894"><a href="#">Lưu tin</a></span>
												        </label> 
											        </div>						
										        </td>
										        <td valign="top" class="li_width_88" width="82">
											        <div class="li_width_88_01">
												         HCM						
											        </div>						
										        </td>
										        <td valign="top" class="li_width_97" width="92">
											        <div class="li_width_97_01">
												        20/03/2011					
											        </div>						
										        </td>
									        </tr>
								        </table>
							        </div>
						        </div>
					        </div>
				        </div>
			        </div>
		        </div>  	
		        <MenuFooter:MeNuDuoi ID="MenuFooter" runat="server" />	
	        </div>
	        <Footer:Foot ID="Footer" runat="server" />
        </div>    
    </form>
</body>
</html>
